package com.lottery.im.widget.dialog;

import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;

import com.lottery.im.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class SignDialogFragment extends BaseDialogFragment {

  public SignDialogFragment() {
    // Required empty public constructor
  }

  public static SignDialogFragment newInstance() {
    Bundle args = new Bundle();
    SignDialogFragment fragment = new SignDialogFragment();
    fragment.setArguments(args);
    return fragment;
  }

  @Override public int getResourceLayout() {
    return R.layout.fragment_sign_dialog;
  }

  @Override public void onCreate(@Nullable Bundle savedInstanceState) {
    new Handler().postDelayed(() -> dismiss(), 2000);
    super.onCreate(savedInstanceState);
  }
}
